package com.patterns.decorator.schoolReport;

/**
 * Created by Xiao Yiyun on 2017/5/18.
 * 抽象的修饰类
 */
public abstract class Decorator extends SchoolReport {
    //得到需要修饰的成绩单
    private SchoolReport schoolReport;
    //通过构造函数传入成绩单
    public Decorator(SchoolReport schoolReport) {
        this.schoolReport = schoolReport;
    }
    //看成绩单
    public void report() {
        this.schoolReport.report();
    }
    //家长签名
    public void sign(String name) {
        this.schoolReport.sign(name);
    }
}
